home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Tools / TRW2000 for Win9x v1.22 / README.CHM / js.js < prev    next >
Encoding:
Text File  |  2000-05-23  |  1.2 KB  |  49 lines

  1. writeCSS();
  2.  
  3. function writeCSS(strPath)
  4. {
  5.     if (navigator.appName == "Microsoft Internet Explorer") {
  6.         var sVer = navigator.appVersion;
  7.         sVer = sVer.substring(0, sVer.indexOf("."));
  8.         if (sVer >= 4) {
  9.             document.writeln('<SCRIPT FOR=reftip EVENT=onclick>window.event.cancelBubble = true;</SCRIPT>');
  10.             strPath = 'style4.css';
  11.         }
  12.         else
  13.             strPath = 'stylen.css';
  14.     }
  15.     else
  16.         strPath = "stylen.css";
  17.  
  18.     document.writeln('<LINK REL="stylesheet" HREF="' + strPath + '">');
  19. }
  20.  
  21. function bodyOnLoad()
  22. {
  23.     // Return if the browser isn't IE4 or later.
  24.     if (navigator.appName != "Microsoft Internet Explorer")
  25.         return false;
  26.     var sVersion = navigator.appVersion;
  27.     sVersion = sVersion.substring(0, sVersion.indexOf(".", 0));
  28.     if (sVersion < 4)
  29.         return false;
  30.                 
  31.     // Write footer
  32.         WriteFooter();
  33.  
  34. }
  35.  
  36.  
  37. function bodyOnClick()
  38. {
  39. }
  40.  
  41. function WriteFooter ()
  42. {   
  43.    document.body.innerHTML += '<br><hr width=97% size=1 Align="Center" color=black>'
  44.                 + '<small><small><i>'
  45.         + '  <a href="mailto:trw2000@knlsoft.com?subject=Feedback: ">Send feedback</a>'
  46.         + ' to <a href="http://www.knlsoft.com/">KnlSoft.com</a>'
  47.         + '</small></small></i>';
  48. }
  49.